            <% content_for :sidebar do -%>
            <% if !current_user.nil? -%>
            <div class="side_box">
                <ul class="menu">
                <% if !current_user.community.nil? -%>
                    <li><%= image_tag("page_white_add.png", :align=>"absmiddle")%> <%= link_to "新的论坛帖子", new_topic_path(@forum) %></li>
                <% end -%>
                </ul>
            </div>
            <% end -%>
	    <div class="tab">
  		<h3>搜索位置</h3>
	    </div>
	    <div class="clear">
		<%= render :partial => "shared/searchCommunity" %>
	    </div>
                        
            <% if @tags.size > 0 -%>
            <div class="tab">
  		<h3>热门标签</h3>
	    </div>
	    <div class="clear">
		<% tag_cloud @tags, %w(nube1 nube2 nube3 nube4 nube5) do |name, css_class| -%>
                    <span class="<%=css_class%>">
                    <%= link_to name, tag_path(name, :type => 'community', :type_id => @community) %>
                    </span>
                <% end -%>
	    </div>
            <% end -%>
                
            <% if  @community.actually_neighbors.size > 0 -%>
            <div class="tab">
  		<h3>邻近的社区</h3>
	    </div>
	    <div class="clear">
                <% for community in @community.actually_neighbors -%>
                    <%= link_to "#{community.title}", community_path(community.district, community)%><span class="postsubinfo">(<%= community.users.size%>个用户,<%= community.common_posts.size%>个帖子)</span><br/>
                <% end -%>
	    </div>
            <% end -%>
            
            <% if  @community.sites.size > 0 -%>
            <div class="tab">
  		<h3>邻近的场所</h3>
	    </div>
	    <div class="clear">
                <% for site in @community.sites -%>
                  <%= link_to "#{site.title}", site_path(site) %><span class="postsubinfo">[<%= site.site_category.title%>](<%= site.site_posts.size%>个评论,<%= site.votegood_count%>/<%= site.votegood_count + site.votebad_count%>的人觉得好)</span><br/>
                <% end -%>
	    </div>
            <% end -%>
            
	    <% end -%>
            
            <% content_for :navbar do -%>
            <div class="box">
                <img class="map" align="absmiddle" alt="You are here" src="/images/map.png"/>
                当前位置 
                » <%= link_to "您这儿", :controller =>'browse', :action => 'index' %> 
                » <%= link_to "#{@community.district.title}", district_path(@community.district) %>
                » <%= link_to "#{@community.title}", community_path(@community.district, @community) %>
		        » 论坛
            </div>
            <% end -%>
            <div class="box">
                <h3>
                    <%= feed_icon_tag @forum.title, formatted_topics_path(@forum, :rss) %>  论坛最新热贴
                </h3>
                <ul class="tabs-nav">
                    <li class=""><%= link_to "<span>社区</span>", community_path(@community.district, @community) %></li>
                    <li class=""><%= link_to "<span>场所</span>", sites_community_path(@community.district, @community) %></li>
                    <li class="active"><%= link_to "<span>论坛</span>", forums_community_path(@community.district, @community) %></li>
                </ul>
                <%= render :partial=>'forums/newtopics', :object => @topics%>
            </div>


